import request from '@/utils/request'

export function logout() {
  return request({
    url: '/logout',
    headers: {
      isToken: true
    },
    method: 'post',
  })
}

export function login(data) {

  return request({
    url: '/user/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

export function getCodeImg(){
  return request({
    url:'/captchaImage',
    headers: {
      isToken: false
    },
    method: 'get',
  })
}
export function getUserInfo(){
  return request({
    url:'/user/getInfo',
    headers: {
      isToken: true
    },
    method: 'get'
  })
}

